<template>
  <div>
    <van-button type="default">默认按钮</van-button>
    <van-button type="primary">主要按钮</van-button>
    <van-button type="info">信息按钮</van-button>
    <van-button type="warning">警告按钮</van-button>
    <van-button type="danger">危险按钮</van-button>
  </div>
</template>

<script>
import { test2 } from '@/api'
export default {
  async created () {
    const [err, res] = await test2()
    if (err) console.error('得登录')
    else console.log(res)
  }

}
</script>

<style>
</style>
